package git.soulbgm.service;

import git.soulbgm.common.base.BaseService;
import git.soulbgm.pojo.Account;


/**
 * 账户表
 *
 * @author SoulBGM
 * @version V1.0
 * @date 2020-11-06 17:27:16
 */
public interface AccountService extends BaseService<Account> {

    /**
     * 减少余额
     *
     * @param accountId 帐户id
     * @param price     价格
     * @return boolean
     * @throws Exception 异常
     */
    boolean reduceBalance(Long accountId, Double price) throws Exception;

}
